/**
 * 轮播图
 */
define(['common/libs/swiper/3.0.6/js/swiper.min.js', 'css!common/libs/swiper/3.0.6/css/swiper.min', 'css!anew/css/swiper'], function() {
	var defaultConfigs = {
		pagination: '.swiper-pagination',
		paginationClickable: true,
		spaceBetween: 30,
		centeredSlides: true,
		autoplay: 2500,
		autoplayDisableOnInteraction: false
	};
	return function(configs) {
		configs = avalon.mix(defaultConfigs, configs);
		avalon(document.querySelector('.swiper-container')).removeClass('hidden');
		new Swiper('.swiper-container', configs);
	}
})